package example.rmi.stub.handler;

import example.rmi.stub.entity.User;

import java.rmi.Remote;
import java.rmi.RemoteException;

/**
 * @author Hao Yang
 */
public interface UserService extends Remote{

    String getNameById(int id) throws RemoteException;

    User getUserById(int id) throws RemoteException;

}
